package cn.wolfcode.shop.cloud.feign;

import cn.wolfcode.shop.cloud.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by wolfcode-lanxw
 */
@FeignClient("member-server")
public interface UserFeignApi {

    /**
     * 刷新redis中的token
     * @param token
     * @return
     */
    @RequestMapping("refreshToken")
    Result<Boolean> refreshToken(@RequestParam("token") String token);
}
